using System;
using System.Web.UI.WebControls;

namespace OpenWaves.Web.Controls
{
    public class PaginationCommandEventArgs : EventArgs
    {
        private readonly PageButton pageButton;
        private readonly object originalSource;
        private readonly string commandName;
        private readonly object commandArgument;

        public PaginationCommandEventArgs(PageButton pageButton, object originalSource, CommandEventArgs originalArgs)
        {
            this.pageButton = pageButton;
            this.originalSource = originalSource;
            this.commandName = originalArgs.CommandName;
            this.commandArgument = originalArgs.CommandArgument; ;
        }

        public PageButton PageButton
        {
            get { return pageButton; }
        }

        public object OriginalSource
        {
            get { return originalSource; }
        }

        public string CommandName
        {
            get { return commandName; }
        }

        public object CommandArgument
        {
            get { return commandArgument; }
        }
    }
}